export interface MorDialogProps {
    modelValue?: boolean,
    title?: string,
    subTitle?: string,
    width?: string | number,
    fullscreen?: boolean,
    top?: string,
    modal?: boolean,
    modalClass?: string,
    headerClass?: string,
    bodyClass?: string,
    footerClass?: string,
    appendToBody?: boolean,
    appendTo?: string,
    lockScroll?: boolean,
    openDelay?: number,
    closeDelay?: number,
    closeOnClickModal?: boolean,
    closeOnPressEscape?: boolean,
    showClose?: boolean,
    beforeClose?: Function,
    draggable?: boolean,
    overFlow?: boolean,
    center?: boolean,
    alignCenter?: boolean,
    destroyOnClose?: boolean,
    closeIcon?: string,
    zIndex?: number,
    headerAriaLevel?: string,
    confirm?: Function,
    cancel?: Function,
    confirmButtonText?: string
    cancelButtonText?: string
}

export const morDialogPropsDefault: MorDialogProps = {
    title: '对话框',
    width: 600,
    fullscreen: false,
    top: '30px',
    modal: true,
    modalClass: 'mor-dialog-modal',
    headerClass: 'mor-dialog-header',
    bodyClass: 'mor-dialog-body-wrapper',
    footerClass: 'mor-dialog-footer',
    appendToBody: true,
    appendTo: 'body',
    lockScroll: true,
    openDelay: 0,
    closeDelay: 0,
    closeOnClickModal: false,
    closeOnPressEscape: false,
    showClose: false,
    beforeClose: (done: Function) => done(),
    draggable: true,
    overFlow: false,
    center: false,
    alignCenter: false,
    destroyOnClose: true,
    closeIcon: 'close',
    confirmButtonText: '确认',
    cancelButtonText: '取消',
}